<?php
	if(!$isExist)
		echo '<h1 class="noExist">此页面内容已经被删除！</h1>';
?>
    <div class="showItemDetail" <?php if(!$isExist){ ?> style="display:none" <?php } ?>>
        <h2 class="showTitle"><?php echo htmlShow($show['name']); ?></h2>
        <p class="showDescription"><?php echo htmlShow($show['description'],'<b><a><p><br>'); ?></p>
        <hr />     
        <div id="showImages">
    
    
    <?php
        $files 		 		= explode('|',$show['file']);
        $fileTitles	 		= explode( SPLIT_STRING , $show['fileTitles']);
        $fileDescriptions	= explode( SPLIT_STRING , $show['fileDescription']);			
        $i 			 = 1;
        foreach($files as $file){
            $fileType = getFileExt($file);
            if( $fileType  == 'flv' || $fileType  == 'mp4' ){
                //$flasl_id = 'FlashID_'.time() . rand(100000000,9999999999);
        ?>            
        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" 
        codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="550" height="500" id="dplayer" align="middle">
        <param name="allowScriptAccess" value="sameDomain" />
        <param name="allowFullScreen" value="true" />
        <param name="menu" value="false" />
        <param name="movie" value="<?php echo WEB_ROOT_PATH;?>jslab/dplayer.swf?media_id=<?php echo urlencode( WEB_ROOT_PATH .'?option=getMedia&id='.$idCode.'_'. $i); ?>" />
        <param name="quality" value="high" /><param name="bgcolor" value="#000000" />
        <embed src="<?php echo JSLAB_PATH;?>dplayer.swf?media_id=<?php echo urlencode(WEB_ROOT_PATH.'?option=getMedia&id='.$idCode.'_'. $i); ?>" quality="high" menu="false" width="550" height="500" name="dplayer" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
        </object>
        <div><?php if(file_exists( ROOTPATH . $file)) echo fileSizeFormat(filesize($file));?></div>
      <?php
            }else if( $fileType == 'swf'){
                //$flasl_id = 'FlashID_'.time() . rand(100000000,9999999999);
     ?>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="550" height="500" id="dplayer" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="true" />
<param name="movie" value="<?php echo WEB_ROOT_PATH;?>?option=getMedia&id=<?php echo $idCode; ?>_<?php echo $i; ?>" />
<param name="quality" value="high" />
<param name="menu" value="false" />
<embed src="<?php echo WEB_ROOT_PATH;?>?option=getMedia&id=<?php echo $idCode; ?>_<?php echo $i; ?>" quality="high" width="550" height="500" name="dplayer" menu="false" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
</object>
     
     
     <?php
        }else if( $fileType == 'png' || $fileType == 'gif' || $fileType == 'jpg' || $fileType == 'jpeg' ){
            //uploadfile/2010/0706/024635459,800x600.jpg
            $size = explode(',',$file);
            $size = explode('.', $size[1]);
            $size = explode('x', $size[0]);
            $width = $size[0];
            $height = $size[1];
    ?>
        <span class="beautyImg"><img src="<?php echo urlRewrite('option=getMedia&id='.$idCode .'&page='.$i .'.'.$fileType)?>" width="<?php echo $width; ?>" height="<?php echo $height; ?>" /></span>
        <div><?php if(file_exists( ROOTPATH . $file)) echo fileSizeFormat(filesize($file));?></div>
    <?php } ?>
    <?php //<h2> echo htmlShow($fileTitles[$i]);</h2> ?>
    <p><?php echo htmlShow($fileDescriptions[$i],'<b><a><p><br>');?></p>        
    <?php
        $i++;
    }
    ?>
    </div><!-- .showItemDetail -->
        
        
         